const connect = require('connect');
const serveStatic = require('serve-static');
const serveIndex = require('serve-index');
const path = require('path');

const root = path.join(__dirname, 'public');

const app = connect()
  .use('/files', serveIndex(root, { icons: true, hidden: true }))
  .use(serveStatic(root, { hidden: true }));

app.listen(3000);
